OrderedDictionary<(Of <TKey, TValue>)> Constructor (IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>, Comparison<(Of <TKey>)>) |
See Also |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a new OrderedDictionary. The passed delegate will be used to compare keys in this dictionary.
A collection and keys and values (typically another dictionary) is used to initialized the contents of the dictionary.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public OrderedDictionary( IEnumerable<KeyValuePair<TKey, TValue>> keysAndValues, Comparison<TKey> comparison ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ keysAndValues As IEnumerable(Of KeyValuePair(Of TKey, TValue)), _ comparison As Comparison(Of TKey) _ ) |
Visual C++ |
---|
public: OrderedDictionary ( IEnumerable<KeyValuePair<TKey, TValue>>^ keysAndValues, Comparison<TKey>^ comparison ) |
Parameters
- keysAndValues
- IEnumerable<(Of <KeyValuePair<(Of <TKey, TValue>)>>)>
A collection of keys and values whose contents are used to initialized the dictionary.
- comparison
- Comparison<(Of <TKey>)>
A delegate to a method that will be used to compare keys.